<%@page import="domain.service.Utils"%>
<%@page import="domain.model.Keyword"%>
<%@page import="domain.model.Emails"%>
<%@page import="domain.model.Whois"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<% request.setCharacterEncoding("utf-8");%>
<%
String title = (String) request.getAttribute("title");
String description = (String) request.getAttribute("description");
String keywords = (String) request.getAttribute("keyword");
List<Keyword> listKeywords = (List<Keyword>) request.getAttribute("keywords");
String topic = (String) request.getAttribute("topic");
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
	<jsp:param name="topic" value="1"/>
</jsp:include>
		<div class="body all">
			<div class="cate">
				<%@ include file='/element/menu_left.jsp'%>
				<%@ include file='/element/new_site.jsp'%>
				<%@ include file='/element/random_site.jsp'%>
			</div>
			<div class="content">
				
				<div class="content_left left">
					<h2 class="title left">Search infomation domain :</h2>
					<div class="add_this right">
						<!-- AddThis Button BEGIN -->
						<div class="addthis_toolbox addthis_default_style ">
						<a class="addthis_button_preferred_1"></a>
						<a class="addthis_button_preferred_2"></a>
						<a class="addthis_button_preferred_3"></a>
						<a class="addthis_button_preferred_4"></a>
						<a class="addthis_button_compact"></a>
						<a class="addthis_counter addthis_bubble_style"></a>
						</div>
						
						<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d6f3cdb1d190d60"></script>
						<!-- AddThis Button END -->
					</div>
					<div class="sum_one right">
						<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
						<g:plusone size="small" count="true"></g:plusone>
					</div>
					<div class="clear"></div>
					
					<form action="" class="search">
						<input type="text" name="name"/>
						<button>Search</button>
						<br/>
						Example Searches : <a href="/domain/childsgame.net">childsgame.net</a> , <a href="/domain/yooarticles.com">yooarticles.com</a>
					</form>
					<br/>
					<h2 class="title">Keyword : <%=topic %></h2>
					<br/>
					<ul class="recent">
						<%
						if(listKeywords.size() > 0)
						{
							for(int i=0;i<listKeywords.size();i++)
							{
						%>
								<li><a href="/domain/<%=listKeywords.get(i).getDomain() %>" title="<%=listKeywords.get(i).getDomain()%>"><%=Utils.cutString(listKeywords.get(i).getDomain(),20) %></a></li>
						<%
							}
						}
						%>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="content_right right">
					
				</div>
			</div>
			<div class="clear"></div>
		</div>
<%@ include file='/layout/footer.jsp'%>